package com.javaerschool.lero.service.impl;

import com.javaerschool.lero.mapper.AdminMapper;
import com.javaerschool.lero.pojo.Admin;
import com.javaerschool.lero.service.AdminServiceI;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 作者: lero
 * 日期：2018/7/25
 */
@Service
@Transactional
public class AdminServiceImpl implements AdminServiceI{

    @Autowired
    AdminMapper adminMapper;

    @Override
    public Admin selectOne(int id) {
        return adminMapper.selectOne(id);
    }

    @Override
    public int insert(Admin admin) {
        return adminMapper.insert(admin);
    }
}
